import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///根组件

class AppNode extends StatelessWidget{

  @override
  Widget build(BuildContext context) {

    return ScreenUtilInit(
      designSize: Size(375,667),
      /// allowFontScaling: false,
      builder: ()=>MaterialApp(
        initialRoute: '/',
        debugShowCheckedModeBanner: false,
        builder: BotToastInit(),
        navigatorObservers: [BotToastNavigatorObserver()],
      ).modular(),
    );
  }
}